package Ventanas;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.table.*;
import com.toedter.calendar.*;




/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 * @author lucas
 */
public class VentanaVerAgendaMedico extends JFrame{

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	
	public VentanaVerAgendaMedico(){
		initComponents();
	}

	private void initComponents() {

		panelIzq = new JPanel();
		calendario = new JCalendar();
		panelDer = new JPanel();
		scrollerTable = new JScrollPane();
		tableTurnos = new JTable();
		panelAbajo = new JPanel();
		btnCancelar = new JButton();
		separator4 = new JSeparator();
		separator5 = new JSeparator();
		separator6 = new JSeparator();
		lblSelMedico = new JLabel();
		cbxMedicos = new JComboBox();
	
		//======== this ========
		{
			this.setTitle("Agenda");
			this.setResizable(false);
			this.setVisible(true);
			this.setName("this");
			this.setIconImage(new ImageIcon("C:\\Documents and Settings\\LUCAS\\Escritorio\\SEMINARIO I\\images\\calendario.png").getImage());
			this.setAlwaysOnTop(true);
			Container thisContentPane = this.getContentPane();
			thisContentPane.setLayout(null);
	
			//======== panelIzq ========
			{
				panelIzq.setBorder(new EmptyBorder(0, 0, 0, 3));
				panelIzq.setLayout(null);
	
				//---- calendario ----
				calendario.setTodayButtonVisible(true);
				panelIzq.add(calendario);
				calendario.setBounds(2, 3, 208, 185);
	
				{ // compute preferred size
					Dimension preferredSize = new Dimension();
					for(int i = 0; i < panelIzq.getComponentCount(); i++) {
						Rectangle bounds = panelIzq.getComponent(i).getBounds();
						preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
						preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
					}
					Insets insets = panelIzq.getInsets();
					preferredSize.width += insets.right;
					preferredSize.height += insets.bottom;
					panelIzq.setMinimumSize(preferredSize);
					panelIzq.setPreferredSize(preferredSize);
				}
			}
			thisContentPane.add(panelIzq);
			panelIzq.setBounds(0, 70, 212, 190);
	
			//======== panelDer ========
			{
				panelDer.setBorder(null);
				panelDer.setLayout(null);
	
				//======== scrollerTable ========
				{
					scrollerTable.setBorder(new TitledBorder("Listado de turnos"));
	
					//---- tableTurnos ----
					tableTurnos.setModel(new DefaultTableModel(
						new Object[][] {
							{"10:00", "No Disponible"},
							{"10:15", "Pendiente De Autorizacion"},
							{"10:30", "No Disponible"},
							{"10:45", "Pendiente De Autorizacion"},
							{"11:00", "Cerrado"},
							{"11:15", "No Disponible"},
							{"11:30", "Cerrado"},
							{"11:45", "Ausente"},
							{"12:00", "Ausente"},
							{"12:15", "No Disponible"},
							{"12:30", "Disponible"},
							{"12:45", "Pendiente De Autorizacion"},
						},
						new String[] {
							"Hora", "Estado"
						}
					) {
						Class[] columnTypes = new Class[] {
							String.class, Object.class
						};
						boolean[] columnEditable = new boolean[] {
							false, false
						};
						@Override
						public Class<?> getColumnClass(int columnIndex) {
							return columnTypes[columnIndex];
						}
						@Override
						public boolean isCellEditable(int rowIndex, int columnIndex) {
							return columnEditable[columnIndex];
						}
					});
					{
						TableColumnModel cm = tableTurnos.getColumnModel();
						cm.getColumn(0).setResizable(false);
						cm.getColumn(0).setPreferredWidth(30);
						cm.getColumn(1).setResizable(false);
						cm.getColumn(1).setPreferredWidth(130);
						cm.getColumn(1).setCellEditor(new DefaultCellEditor(
							new JComboBox(new DefaultComboBoxModel(new String[] {
								"Disponible",
								"No Disponible",
								"Reservado",
								"Cerrado",
								"Pendiente De Autorizacion",
								"Ausente"
							}))));
					}
					tableTurnos.setBackground(Color.white);
					scrollerTable.setViewportView(tableTurnos);
				}
				panelDer.add(scrollerTable);
				scrollerTable.setBounds(26, 5, 274, 245);
	
				{ // compute preferred size
					Dimension preferredSize = new Dimension();
					for(int i = 0; i < panelDer.getComponentCount(); i++) {
						Rectangle bounds = panelDer.getComponent(i).getBounds();
						preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
						preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
					}
					Insets insets = panelDer.getInsets();
					preferredSize.width += insets.right;
					preferredSize.height += insets.bottom;
					panelDer.setMinimumSize(preferredSize);
					panelDer.setPreferredSize(preferredSize);
				}
			}
			thisContentPane.add(panelDer);
			panelDer.setBounds(218, 40, 312, 247);
	
			//======== panelAbajo ========
			{
				panelAbajo.setBorder(null);
				panelAbajo.setLayout(null);
	
				//---- btnCancelar ----
				btnCancelar.setText("Cerrar");
				btnCancelar.setIcon(new ImageIcon("C:\\Documents and Settings\\LUCAS\\Escritorio\\images\\cruzCancelar.jpg"));
				btnCancelar.setMargin(new Insets(2, 5, 2, 5));
				panelAbajo.add(btnCancelar);
				btnCancelar.setBounds(70, 9, 90, btnCancelar.getPreferredSize().height);
	
				{ // compute preferred size
					Dimension preferredSize = new Dimension();
					for(int i = 0; i < panelAbajo.getComponentCount(); i++) {
						Rectangle bounds = panelAbajo.getComponent(i).getBounds();
						preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
						preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
					}
					Insets insets = panelAbajo.getInsets();
					preferredSize.width += insets.right;
					preferredSize.height += insets.bottom;
					panelAbajo.setMinimumSize(preferredSize);
					panelAbajo.setPreferredSize(preferredSize);
				}
			}
			thisContentPane.add(panelAbajo);
			panelAbajo.setBounds(155, 310, 204, 41);
	
			//---- separator4 ----
			separator4.setBackground(Color.black);
			separator4.setOrientation(SwingConstants.VERTICAL);
			separator4.setForeground(Color.black);
			thisContentPane.add(separator4);
			separator4.setBounds(215, 30, 5, 269);
	
			//---- separator5 ----
			separator5.setBackground(Color.black);
			separator5.setForeground(Color.black);
			thisContentPane.add(separator5);
			separator5.setBounds(0, 299, 571, 5);
	
			//---- separator6 ----
			separator6.setBackground(Color.black);
			separator6.setForeground(Color.black);
			thisContentPane.add(separator6);
			separator6.setBounds(0, 30, 575, 5);
	
			//---- lblSelMedico ----
			lblSelMedico.setText("Seleccionar Medico");
			thisContentPane.add(lblSelMedico);
			lblSelMedico.setBounds(7, 5, 130, 19);
	
			//---- cbxMedicos ----
			cbxMedicos.setModel(new DefaultComboBoxModel(new String[] {
				"Medico1",
				"Medico2",
				"Medico3",
				"Medico4"
			}));
			thisContentPane.add(cbxMedicos);
			cbxMedicos.setBounds(157, 5, 220, 19);
	
			{ // compute preferred size
				Dimension preferredSize = new Dimension();
				for(int i = 0; i < thisContentPane.getComponentCount(); i++) {
					Rectangle bounds = thisContentPane.getComponent(i).getBounds();
					preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
					preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
				}
				Insets insets = thisContentPane.getInsets();
				preferredSize.width += insets.right;
				preferredSize.height += insets.bottom;
				thisContentPane.setMinimumSize(preferredSize);
				thisContentPane.setPreferredSize(new java.awt.Dimension(591, 355));
			}
			this.pack();
			this.setSize(577, 381);
			this.setLocationRelativeTo(null);
		}
	}


	private JPanel panelIzq;
	private JCalendar calendario;
	private JPanel panelDer;
	private JScrollPane scrollerTable;
	private JTable tableTurnos;
	private JPanel panelAbajo;
	private JButton btnCancelar;
	private JSeparator separator4;
	private JSeparator separator5;
	private JSeparator separator6;
	private JLabel lblSelMedico;
	private JComboBox cbxMedicos;
}
